package com.ruoyi.project.newhope.material.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 物料主数据设置对象 new_hope_material
 * 
 * @author ruoyi
 * @date 2021-02-08
 */
public class NewHopeMaterial implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String materialCode;

    /** 映射编码 */
    @Excel(name = "映射编码")
    private String mappingCode;

    /** 物料描述 */
    @Excel(name = "物料描述")
    private String materialDesc;

    /** 红外采集数据物料值 */
    @Excel(name = "红外采集数据物料值")
    private String materialMappingValue;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMaterialCode(String materialCode)
    {
        this.materialCode = materialCode;
    }

    public String getMaterialCode()
    {
        return materialCode;
    }
    public void setMappingCode(String mappingCode)
    {
        this.mappingCode = mappingCode;
    }

    public String getMappingCode()
    {
        return mappingCode;
    }
    public void setMaterialDesc(String materialDesc)
    {
        this.materialDesc = materialDesc;
    }

    public String getMaterialDesc()
    {
        return materialDesc;
    }

    public String getMaterialMappingValue() {
        return materialMappingValue;
    }

    public void setMaterialMappingValue(String materialMappingValue) {
        this.materialMappingValue = materialMappingValue;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialCode", getMaterialCode())
            .append("mappingCode", getMappingCode())
            .append("materialDesc", getMaterialDesc())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
